﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Threading.Tasks;

namespace amis6_api.Common
{
    public class DbFactory
    {
        private readonly IConfiguration _configuration;

        private static string ConnStr=ConfigUtil.Configuration["Conn"];

        private IDbConnection dbConnection;


        public DbFactory(IConfiguration configuration)
        {
            _configuration = configuration;
            
        }

        public static IDbConnection Db()
        {
            return new SqlConnection(ConnStr);
        }
    }
}
